<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>表单验证状态</title>
    <link rel="stylesheet" href="../../css/bootstrap.css">
</head>
<body>
<div class="container">
    <div class="row">
        <div class="cl-md-6 col-md-offset-3">
            <form action="">
                <div class="form-group has-success">
                    <label class="control-label">成功状态：</label>
                    <input class="form-control" type="text" placeholder="成功状态">
                </div>
                <div class="form-group has-error">
                    <label class="control-label">错误状态：</label>
                    <input class="form-control" type="text" placeholder="成功状态">
                </div>
                <div class="form-group has-warning">
                    <label class="control-label">警告状态：</label>
                    <input class="form-control" type="text" placeholder="成功状态">
                </div>
            </form>
        </div>
    </div>
</div>
<hr>
<div class="container">
    <div class="row">
        <div class="cl-md-6 col-md-offset-3">
            <form action="">
                <div class="form-group has-success has-feedback">
                    <label class="control-label">成功状态：</label>
                    <input class="form-control" type="text" placeholder="成功状态">
                    <span class="glyphicon glyphicon-ok form-control-feedback"></span>
                </div>
                <div class="form-group has-error has-feedback">
                    <label class="control-label">错误状态：</label>
                    <input class="form-control" type="text" placeholder="成功状态">
                    <span class="glyphicon glyphicon-remove form-control-feedback"></span>
                </div>
                <div class="form-group has-warning has-feedback">
                    <label class="control-label">警告状态：</label>
                    <input class="form-control" type="text" placeholder="成功状态">
                    <span class="glyphicon glyphicon-warning-sign form-control-feedback"></span>
                </div>
            </form>
        </div>
    </div>
    <hr>
    <div class="container">
        <div class="row">
            <div class="cl-md-6 col-md-offset-3">
                <form action="" class="form-inline">
                    <div class="row">
                        <div class="form-group has-success has-feedback">
                            <label class="control-label">成功状态：</label>
                            <input class="form-control" type="text">
                            <span class="glyphicon glyphicon-ok form-control-feedback"></span>
                             <span class="help-block">你输入的信息正确</span>
                        </div>
                    </div>
                    <div class="row">
                        <div class="form-group has-error has-feedback">
                            <label class="control-label">错误状态：</label>
                            <input class="form-control" type="text">
                            <span class="help-block">你输入的信息错误</span>
                            <span class="glyphicon glyphicon-remove form-control-feedback"></span>
                        </div>
                    </div>
                    <div class="row">
                        <div class="form-group has-warning has-feedback">
                            <label class="control-label">警告状态：</label>
                            <input class="form-control" type="text">
                            <span class="help-block">你输入的信息正确</span>
                            <span class="glyphicon glyphicon-warning-sign form-control-feedback"></span>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
    <hr>
    <div class="container">
        <div class="row">
            <div class="col-md-8 col-md-offset-2">
                <form action="" class="form-inline">
                    <div class="form-group">
                        <label class="control-label">用户名：</label>
                        <div class="row">
                            <div class="col-md-6">
                                <!-- <div class="form-group has-error has-feedback">-->
                                <input class="form-control" type="text" name="">
                                <!-- <span class="glyphicon glyphicon-remove form-control-feedback"></span>-->
                            </div>
                            <div class="col-md-6">
                                <!--<span style="color: #a94442">-->
                                <div class="help-block">请输入正确的用户名</div>
                            </div>
                        </div>
                    </div>

                </form>
            </div>
        </div>
    </div>
    <hr>
    <div class="container">
        <div class="row">
            <div class="col-md-8 col-md-offset-2">
                <form action="" class="form-inline">
                   <!-- <div class="form-group">-->
                        <div class="row">
                            <div class="col-md-6">
                              <div class="form-group has-error has-feedback">
                                  <label class="control-label">用户名：</label>
                                <input class="form-control" type="text" name="">
                                <span class="glyphicon glyphicon-remove form-control-feedback"></span>
                            </div>
                                </div>
                            <div class="col-md-6">
                           <span class="hidden-xs hidden-md hidden-sm" style="color: #a94442;vertical-align: middle; padding-top: 10px;
margin-left: -122px;">请输入正确的用户名</span>

                            </div>
                        </div>


                </form>
            </div>
        </div>
    </div>


</div>
</body>
</html>
